<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>ActiveRecord::DynamicMatchers::Finder</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/main.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../../css/github.css" type="text/css" media="screen" />
<script src="../../../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/jquery-effect.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/main.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../js/highlight.pack.js" type="text/javascript" charset="utf-8"></script>

</head>

<body>     
    <div class="banner">
        
            <span>Ruby on Rails v4.0.0</span><br />
        
        <h1>
            <span class="type">Module</span> 
            ActiveRecord::DynamicMatchers::Finder 
            
        </h1>
        <ul class="files">
            
            <li><a href="../../../files/activerecord/lib/active_record/dynamic_matchers_rb.html">activerecord/lib/active_record/dynamic_matchers.rb</a></li>
            
        </ul>
    </div>
    <div id="bodyContent">
        <div id="content">
  


  


  
  


  


  
    <!-- Method ref -->
    <div class="sectiontitle">Methods</div>
    <dl class="methods">
      
        <dt>A</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Finder.html#method-i-attributes_hash">attributes_hash</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>B</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Finder.html#method-i-body">body</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>F</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Finder.html#method-i-finder">finder</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>R</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Finder.html#method-i-result">result</a>
              </li>
            
          </ul>
        </dd>
      
        <dt>S</dt>
        <dd>
          <ul>
            
              
              <li>
                <a href="Finder.html#method-i-signature">signature</a>
              </li>
            
          </ul>
        </dd>
      
    </dl>
  

  



  

    

    

    


    


    <!-- Methods -->
        
      <div class="sectiontitle">Instance Public methods</div>
      
        <div class="method">
          <div class="title method-title" id="method-i-attributes_hash">
            
              <b>attributes_hash</b>()
            
            <a href="Finder.html#method-i-attributes_hash" name="method-i-attributes_hash" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-attributes_hash_source')" id="l_method-i-attributes_hash_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/a44a5e4bbd0c1429a052444f4ce715d5360c1a0b/activerecord/lib/active_record/dynamic_matchers.rb#L92" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-attributes_hash_source" class="dyn-source">
                <pre><span class="ruby-comment"># File activerecord/lib/active_record/dynamic_matchers.rb, line 92</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">attributes_hash</span>
  <span class="ruby-string">&quot;{&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">attribute_names</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">name</span><span class="ruby-operator">|</span> <span class="ruby-node">&quot;:#{name} =&gt; #{name}&quot;</span> }.<span class="ruby-identifier">join</span>(<span class="ruby-string">','</span>) <span class="ruby-operator">+</span> <span class="ruby-string">&quot;}&quot;</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-body">
            
              <b>body</b>()
            
            <a href="Finder.html#method-i-body" name="method-i-body" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              <p>Extended in activerecord-deprecated_finders</p>
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-body_source')" id="l_method-i-body_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/a44a5e4bbd0c1429a052444f4ce715d5360c1a0b/activerecord/lib/active_record/dynamic_matchers.rb#L78" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-body_source" class="dyn-source">
                <pre><span class="ruby-comment"># File activerecord/lib/active_record/dynamic_matchers.rb, line 78</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">body</span>
  <span class="ruby-identifier">result</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-finder">
            
              <b>finder</b>()
            
            <a href="Finder.html#method-i-finder" name="method-i-finder" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-finder_source')" id="l_method-i-finder_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/a44a5e4bbd0c1429a052444f4ce715d5360c1a0b/activerecord/lib/active_record/dynamic_matchers.rb#L96" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-finder_source" class="dyn-source">
                <pre><span class="ruby-comment"># File activerecord/lib/active_record/dynamic_matchers.rb, line 96</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">finder</span>
  <span class="ruby-identifier">raise</span> <span class="ruby-constant">NotImplementedError</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-result">
            
              <b>result</b>()
            
            <a href="Finder.html#method-i-result" name="method-i-result" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              <p>Extended in activerecord-deprecated_finders</p>
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-result_source')" id="l_method-i-result_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/a44a5e4bbd0c1429a052444f4ce715d5360c1a0b/activerecord/lib/active_record/dynamic_matchers.rb#L83" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-result_source" class="dyn-source">
                <pre><span class="ruby-comment"># File activerecord/lib/active_record/dynamic_matchers.rb, line 83</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">result</span>
  <span class="ruby-node">&quot;#{finder}(#{attributes_hash})&quot;</span>
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
        
        <div class="method">
          <div class="title method-title" id="method-i-signature">
            
              <b>signature</b>()
            
            <a href="Finder.html#method-i-signature" name="method-i-signature" class="permalink">Link</a>
          </div>
          
          
            <div class="description">
              <p>Extended in activerecord-deprecated_finders</p>
            </div>
          
          
          
          
          
            
            <div class="sourcecode">
              
              <p class="source-link">
                Source: 
                <a href="javascript:toggleSource('method-i-signature_source')" id="l_method-i-signature_source">show</a>
                
                  | <a href="https://github.com/rails/rails/blob/a44a5e4bbd0c1429a052444f4ce715d5360c1a0b/activerecord/lib/active_record/dynamic_matchers.rb#L88" target="_blank" class="github_url">on GitHub</a>
                
              </p>
              <div id="method-i-signature_source" class="dyn-source">
                <pre><span class="ruby-comment"># File activerecord/lib/active_record/dynamic_matchers.rb, line 88</span>
<span class="ruby-keyword">def</span> <span class="ruby-keyword ruby-title">signature</span>
  <span class="ruby-identifier">attribute_names</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">', '</span>)
<span class="ruby-keyword">end</span></pre>
              </div>
            </div>
            
          </div>
                    </div>

    </div>
  </body>
</html>    